package com.demo.spring.di.annotations;

import org.springframework.stereotype.Service;

/**
 * 注解配置依赖注入bean
 *
 * @author Nina
 * @create 2018/8/29 下午7:16
 */
@Service
public class Bean2 {
    public void sayHello(){
        System.out.println("hello world");
    }
}
